package com.example.algorithm.queue;

public class DequeTest {

    public static void main(String[] args) {
        Deque<Integer> deque = new Deque<>();
        deque.addLast(0);
        deque.addLast(1);
        deque.addLast(2);
        deque.addLast(3);
        deque.addFront(-1);
        deque.addFront(-2);
        deque.addFront(-3);
        System.out.println(deque);
        deque.removeFront();
        System.out.println(deque);
        deque.removeLast();
        System.out.println(deque);
    }
}
